import { http } from "@/utils/http";
export type GetFindUsersResult = {
  code: number;
  count: number;
  current: number;
  data?: Array<string>;
  pages: number;
  size: number;
};
//获取用户列表
export const fetchList = (data?: object) => {
  return http.request<GetFindUsersResult>(
    "get",
    "/api-user/users/findUsers",
    data
  );
};
export type GettFindTreeDeptsResult = {
  resp_code: number;
  resp_msg: string;
  datas?: Array<string>;
};
//获取部分数据
export const getFindTreeDepts = (data?: object) => {
  return http.request<GettFindTreeDeptsResult>(
    "get",
    "/api-user/depts/findTreeDepts",
    data
  );
};
